﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace jnxc.Web.factoryinfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int fid=(Convert.ToInt32(strid));
					ShowInfo(fid);
				}
			}
		}
		
	private void ShowInfo(int fid)
	{
		jnxc.BLL.factoryinfo bll=new jnxc.BLL.factoryinfo();
		jnxc.Model.factoryinfo model=bll.GetModel(fid);
		this.lblfid.Text=model.fid.ToString();
		this.lblfuser.Text=model.fuser;
		this.lblfpwd.Text=model.fpwd;
		this.lblfname.Text=model.fname;
		this.lblyz.Text=model.yz;
		this.lblzj.Text=model.zj;
		this.lblsd.Text=model.sd;
		this.lblfadd.Text=model.fadd;
		this.lblftel.Text=model.ftel;
		this.lblflinker.Text=model.flinker;
		this.lblfemail.Text=model.femail;
		this.lblfstate.Text=model.fstate.ToString();

	}


    }
}
